package com.example.slidecutlistview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.Scroller;
import android.widget.TextView;

public class CustomedTextView extends TextView {
	public Scroller mScroller;
	public CustomedTextView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		mScroller = new Scroller(context);
	}
	public CustomedTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
		mScroller = new Scroller(context);	}
	public CustomedTextView(Context context) {
		super(context);
		mScroller = new Scroller(context);	}
	@Override
	public void computeScroll() {
		if(mScroller.computeScrollOffset()){
			scrollTo(mScroller.getCurrX(), mScroller.getCurrY());
		}
	}

}
